home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 0a | 50 61 74 68 3a 20 6e 61 |.lang.c.|Path: na|
|00000020| 70 69 65 72 2e 75 77 61 | 74 65 72 6c 6f 6f 2e 63 |pier.uwa|terloo.c|
|00000030| 61 21 6a 79 65 74 73 65 | 0a 46 72 6f 6d 3a 20 4d |a!jyetse|.From: M|
|00000040| 6f 6e 67 6b 6f 6b 20 3c | 6a 79 65 74 73 65 40 75 |ongkok <|jyetse@u|
|00000050| 6e 64 65 72 67 72 61 64 | 2e 6d 61 74 68 2e 75 77 |ndergrad|.math.uw|
|00000060| 61 74 65 72 6c 6f 6f 2e | 63 61 3e 0a 53 75 62 6a |aterloo.|ca>.Subj|
|00000070| 65 63 74 3a 20 52 65 3a | 20 61 74 6f 66 2f 61 74 |ect: Re:| atof/at|
|00000080| 6f 69 20 0a 53 65 6e 64 | 65 72 3a 20 6e 65 77 73 |oi .Send|er: news|
|00000090| 40 75 6e 64 65 72 67 72 | 61 64 2e 6d 61 74 68 2e |@undergr|ad.math.|
|000000a0| 75 77 61 74 65 72 6c 6f | 6f 2e 63 61 20 28 6e 65 |uwaterlo|o.ca (ne|
|000000b0| 77 73 20 73 70 6f 6f 6c | 20 6f 77 6e 65 72 29 0a |ws spool| owner).|
|000000c0| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 50 69 6e |Message-|ID: <Pin|
|000000d0| 65 2e 53 55 4e 2e 33 2e | 39 31 2e 39 36 30 32 31 |e.SUN.3.|91.96021|
|000000e0| 31 30 33 30 37 32 33 2e | 33 30 33 33 42 2d 31 30 |1030723.|3033B-10|
|000000f0| 30 30 30 30 40 6e 61 70 | 69 65 72 2e 75 77 61 74 |0000@nap|ier.uwat|
|00000100| 65 72 6c 6f 6f 2e 63 61 | 3e 0a 58 2d 53 65 6e 64 |erloo.ca|>.X-Send|
|00000110| 65 72 3a 20 6a 79 65 74 | 73 65 40 6e 61 70 69 65 |er: jyet|se@napie|
|00000120| 72 2e 75 77 61 74 65 72 | 6c 6f 6f 2e 63 61 0a 49 |r.uwater|loo.ca.I|
|00000130| 6e 2d 52 65 70 6c 79 2d | 54 6f 3a 20 3c 50 69 6e |n-Reply-|To: <Pin|
|00000140| 65 2e 41 33 32 2e 33 2e | 39 31 2e 39 36 30 32 31 |e.A32.3.|91.96021|
|00000150| 30 31 39 32 33 30 39 2e | 34 35 39 36 39 43 2d 31 |0192309.|45969C-1|
|00000160| 30 30 30 30 30 40 62 6c | 61 63 6b 2e 77 65 65 67 |00000@bl|ack.weeg|
|00000170| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 20 0a 44 61 74 |.uiowa.e|du> .Dat|
|00000180| 65 3a 20 53 75 6e 2c 20 | 31 31 20 46 65 62 20 31 |e: Sun, |11 Feb 1|
|00000190| 39 39 36 20 30 38 3a 30 | 39 3a 32 37 20 47 4d 54 |996 08:0|9:27 GMT|
|000001a0| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 54 |.Content|-Type: T|
|000001b0| 45 58 54 2f 50 4c 41 49 | 4e 3b 20 63 68 61 72 73 |EXT/PLAI|N; chars|
|000001c0| 65 74 3d 55 53 2d 41 53 | 43 49 49 0a 52 65 66 65 |et=US-AS|CII.Refe|
|000001d0| 72 65 6e 63 65 73 3a 20 | 3c 34 66 69 68 70 70 24 |rences: |<4fihpp$|
|000001e0| 6a 35 71 40 6e 6e 74 70 | 2e 6e 6f 76 69 61 2e 6e |j5q@nntp|.novia.n|
|000001f0| 65 74 3e 20 3c 50 69 6e | 65 2e 41 33 32 2e 33 2e |et> <Pin|e.A32.3.|
|00000200| 39 31 2e 39 36 30 32 31 | 30 31 39 32 33 30 39 2e |91.96021|0192309.|
|00000210| 34 35 39 36 39 43 2d 31 | 30 30 30 30 30 40 62 6c |45969C-1|00000@bl|
|00000220| 61 63 6b 2e 77 65 65 67 | 2e 75 69 6f 77 61 2e 65 |ack.weeg|.uiowa.e|
|00000230| 64 75 3e 20 0a 4e 6e 74 | 70 2d 50 6f 73 74 69 6e |du> .Nnt|p-Postin|
|00000240| 67 2d 48 6f 73 74 3a 20 | 6e 61 70 69 65 72 2e 75 |g-Host: |napier.u|
|00000250| 77 61 74 65 72 6c 6f 6f | 2e 63 61 0a 4d 69 6d 65 |waterloo|.ca.Mime|
|00000260| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 4f 72 |-Version|: 1.0.Or|
|00000270| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 55 6e 69 76 |ganizati|on: Univ|
|00000280| 65 72 73 69 74 79 20 6f | 66 20 57 61 74 65 72 6c |ersity o|f Waterl|
|00000290| 6f 6f 0a 0a 4f 6e 20 53 | 61 74 2c 20 31 30 20 46 |oo..On S|at, 10 F|
|000002a0| 65 62 20 31 39 39 36 2c | 20 54 68 65 20 41 6d 6f |eb 1996,| The Amo|
|000002b0| 72 70 68 6f 75 73 20 4d | 61 73 73 20 77 72 6f 74 |rphous M|ass wrot|
|000002c0| 65 3a 0a 0a 3e 20 64 6f | 75 62 6c 65 20 61 74 6f |e:..> do|uble ato|
|000002d0| 66 28 63 6f 6e 73 74 20 | 63 68 61 72 20 2a 29 3b |f(const |char *);|
|000002e0| 0a 3e 20 0a 3e 20 20 20 | 54 68 69 73 20 72 65 61 |.> .> |This rea|
|000002f0| 64 73 20 22 54 68 65 20 | 66 75 6e 63 74 69 6f 6e |ds "The |function|
|00000300| 20 61 74 6f 66 20 74 61 | 6b 65 73 20 61 73 20 61 | atof ta|kes as a|
|00000310| 20 70 61 72 61 6d 65 74 | 65 72 20 61 20 70 6f 69 | paramet|er a poi|
|00000320| 6e 74 65 72 20 74 6f 20 | 63 6f 6e 73 74 20 0a 3e |nter to |const .>|
|00000330| 20 63 68 61 72 20 61 6e | 64 20 72 65 74 75 72 6e | char an|d return|
|00000340| 73 20 61 20 64 6f 75 62 | 6c 65 2e 22 20 20 22 64 |s a doub|le." "d|
|00000350| 6f 75 62 6c 65 22 20 69 | 73 20 61 20 66 6c 6f 61 |ouble" i|s a floa|
|00000360| 74 69 6e 67 2d 70 6f 69 | 6e 74 20 74 79 70 65 2e |ting-poi|nt type.|
|00000370| 20 20 53 6f 20 74 6f 20 | 0a 3e 20 75 73 65 20 61 | So to |.> use a|
|00000380| 74 6f 66 28 29 20 79 6f | 75 20 6e 65 65 64 20 61 |tof() yo|u need a|
|00000390| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 63 68 61 72 | pointer| to char|
|000003a0| 20 74 68 61 74 20 70 6f | 69 6e 74 73 20 74 6f 20 | that po|ints to |
|000003b0| 74 68 65 20 73 74 72 69 | 6e 67 20 79 6f 75 20 77 |the stri|ng you w|
|000003c0| 61 6e 74 20 0a 3e 20 74 | 6f 20 63 6f 6e 76 65 72 |ant .> t|o conver|
|000003d0| 74 20 28 69 74 20 64 6f | 65 73 6e 27 74 20 68 61 |t (it do|esn't ha|
|000003e0| 76 65 20 74 6f 20 62 65 | 20 61 20 63 6f 6e 73 74 |ve to be| a const|
|000003f0| 20 63 68 61 72 29 20 61 | 6e 64 20 61 20 64 6f 75 | char) a|nd a dou|
|00000400| 62 6c 65 20 74 6f 20 73 | 74 6f 72 65 20 74 68 65 |ble to s|tore the|
|00000410| 20 0a 3e 20 72 65 74 75 | 72 6e 65 64 20 76 61 6c | .> retu|rned val|
|00000420| 75 65 20 6f 66 20 74 68 | 65 20 63 61 6c 6c 3a 0a |ue of th|e call:.|
|00000430| 3e 20 0a 3e 20 64 6f 75 | 62 6c 65 20 64 3b 0a 3e |> .> dou|ble d;.>|
|00000440| 20 63 68 61 72 20 2a 73 | 20 3d 20 22 31 32 33 2e | char *s| = "123.|
|00000450| 34 35 36 22 0a 3e 20 0a | 3e 20 64 20 3d 20 61 74 |456".> .|> d = at|
|00000460| 6f 66 28 73 29 3b 0a 0a | 20 20 41 6c 73 6f 20 6e |of(s);..| Also n|
|00000470| 6f 74 65 20 74 68 61 74 | 20 74 68 65 20 72 65 74 |ote that| the ret|
|00000480| 75 72 6e 20 76 61 6c 75 | 65 20 6f 66 20 61 74 6f |urn valu|e of ato|
|00000490| 66 20 28 29 20 77 69 6c | 6c 20 62 65 20 30 2e 30 |f () wil|l be 0.0|
|000004a0| 20 69 66 20 74 68 65 0a | 73 74 72 69 6e 67 20 63 | if the.|string c|
|000004b0| 61 6e 27 74 20 62 65 20 | 63 6f 6e 76 65 72 74 65 |an't be |converte|
|000004c0| 64 20 69 6e 74 6f 20 61 | 20 64 6f 75 62 6c 65 20 |d into a| double |
|000004d0| 28 62 65 63 61 75 73 65 | 20 6f 66 20 62 61 64 20 |(because| of bad |
|000004e0| 66 6f 72 6d 61 74 2c 0a | 65 74 63 2e 29 2e 20 53 |format,.|etc.). S|
|000004f0| 6f 20 79 6f 75 20 6d 61 | 79 20 77 61 6e 74 20 74 |o you ma|y want t|
|00000500| 6f 20 63 68 65 63 6b 20 | 74 68 61 74 20 74 68 65 |o check |that the|
|00000510| 20 73 74 72 69 6e 67 20 | 69 73 20 69 6e 20 74 68 | string |is in th|
|00000520| 65 0a 70 72 6f 70 65 72 | 20 66 6c 6f 61 74 69 6e |e.proper| floatin|
|00000530| 67 20 70 6f 69 6e 74 20 | 66 6f 72 6d 61 74 20 62 |g point |format b|
|00000540| 65 66 6f 72 65 20 75 73 | 69 6e 67 20 61 74 6f 66 |efore us|ing atof|
|00000550| 20 28 29 2e 0a 0a 4d 6f | 6e 67 6b 6f 6b 0a 0a 4d | ()...Mo|ngkok..M|
|00000560| 6f 6e 67 6b 6f 6b 20 2d | 20 6a 79 65 74 73 65 40 |ongkok -| jyetse@|
|00000570| 75 6e 64 65 72 67 72 61 | 64 2e 6d 61 74 68 2e 75 |undergra|d.math.u|
|00000580| 77 61 74 65 72 6c 6f 6f | 2e 63 61 0a 68 74 74 70 |waterloo|.ca.http|
|00000590| 3a 2f 2f 77 77 77 2e 75 | 6e 64 65 72 67 72 61 64 |://www.u|ndergrad|
|000005a0| 2e 6d 61 74 68 2e 75 77 | 61 74 65 72 6c 6f 6f 2e |.math.uw|aterloo.|
|000005b0| 63 61 2f 7e 6a 79 65 74 | 73 65 2f 0a 0a |ca/~jyet|se/.. |
+--------+-------------------------+-------------------------+--------+--------+